<template>
  <div class="index-product">
    <div class="index-product-box">
      <span class="index-product-box-name">热销产品Top 10</span>
      <div class="index-product-box-select">
        <el-button-group>
          <el-button type="primary" size="mini">近七天</el-button>
          <el-button size="mini">本月</el-button>
          <el-button size="mini">本年</el-button>
        </el-button-group>
      </div>
      <div class="index-product-box-charts">
        <dv-scroll-ranking-board
          :config="config"
          style="width:100%;height:450px; color: red;"
        />
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      config: {
        data: [
          {
            name: "周口",
            value: 55,
          },
          {
            name: "南阳",
            value: 120,
          },
          {
            name: "西峡",
            value: 78,
          },
          {
            name: "驻马店",
            value: 66,
          },
          {
            name: "新乡",
            value: 80,
          },
          {
            name: "新乡",
            value: 26,
          },
          {
            name: "新乡",
            value: 20,
          },
          {
            name: "新乡",
            value: 13,
          },
          {
            name: "新乡",
            value: 10,
          },
        ],
        unit: "件",
        rowNum: 10,
      },
    };
  },
};
</script>
<style scoped>
.index-product {
  width: 100%;
  height: auto;
  background: #ffffff;
  border-radius: 5px;
  padding: 15px;
  box-sizing: border-box;
}
.index-product-box {
  width: 100%;
  /* height: 200px; */
  border: 1px solid #e6e6e6;
  position: relative;
  padding: 20px 15px;
  box-sizing: border-box;
}
.index-product-box-name {
  position: absolute;
  width: 100px;
  height: 30px;
  background: #ffffff;
  display: inline-block;
  text-align: center;
  line-height: 30px;
  font-size: 13px;
  color: #000000;
  left: 25px;
  top: -15px;
}
.index-product-box-select {
  width: 100%;
  height: 40px;
  /* background: burlywood; */
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 10px;
}
.index-product-box-charts {
  width: 100%;
  height: 500px;
  /* background: chocolate; */
}
</style>
